// 类型声明

export interface InputProps {
  type:string// 必选
  size?:'large' | 'small'
  modelValue:string
  disabled?:boolean// 禁用
  clearable?:boolean//一键清空功能
  showPassword?:boolean// 控制显示密码
  // input  的原生属性
  placeholder?:string
  readonly?:boolean
  autocomplete?:string
  autofocus?:boolean
  form?:string
}

export interface InputEmits{
  (e:'update:modelValue',value:string):void
  // 以下是 input 的原生属性
  (e:'input',val:string):void
  (e:'change',val:string):void
  (e:'focus',value:FocusEvent):void
  (e:'blur',value:FocusEvent):void
  (e:'clear'):void
}

// 组建实例
export interface InputInstance{
  ref:HTMLInputElement | HTMLTextAreaElement
}